	var websocket;
	var account = '13383848500';
	console.log(server.sockteMoz);
	console.log(server.sockteJs);
	// 首先判断是否 支持 WebSocket
	if ('WebSocket' in window) {
		websocket = new WebSocket(server.sockteMoz+'account');
	} else if ('MozWebSocket' in window) {
		websocket = new MozWebSocket(server.sockteWeb+'account');
	} else {
		websocket = new SockJS(server.sockteJs+'account');
	}
	// 打开时
	websocket.onopen = function(evnt) {
		console.log(" websocket.onopen  ");
	};
	// 处理消息时
	websocket.onmessage = function(evnt) {
		/*jQuery("#msg").append("<p>(<font color='red'>" + evnt.data + "</font>)</p>");*/
		console.log("  websocket.onmessage   ");
		console.log(evnt.data);
	};
	websocket.onerror = function(evnt) {
		console.log("  websocket.onerror  ");
	};
	websocket.onclose = function(evnt) {
		console.log("  websocket.onclose  ");
	};
	// 点击了发送消息按钮的响应事件
	jQuery("#TXBTN").click(function() {
		// 获取消息内容
		var text = jQuery("#tx").val();
		// 判断
		if (text == null || text == "") {
			alert(" content  can not empty!!");
			return false;
		}
		var msg = {
			type : 'self_select',
			list:["00001", "00002", "00003", "00004", "00005", "00006", "00011", "00012",]
		};
		// 发送消息
		websocket.send(JSON.stringify(msg));
	});
